﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Register
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
    <br />
    <br />
    <h2>Register</h2>

    <br />
    <br />


    
    <% using (Html.BeginForm("RegisterPost", "Home"))
   { %>
    Username:
     <% =Html.TextBox("UserName") %>
     <br />
     <br />
         Password:
     <% =Html.Password("Password") %>

     <br />

     <br />
       <br />
         E-Mail:
         <% =Html.TextBox("Email") %>

        <br />
        <br />

        <% if (ViewData["errorMsg"] != null)
        { %>
        <br />
        <p style='color:Red'>
        <br />
         <%=  (string)ViewData["errorMsg"] %>
         </p>
     <%} %>

      <input type="submit" class="dASButton" value="Register" />

          
   <% } %>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
